﻿using SqlSugar;
using System;

namespace OldPlatform_to_NewPlatform.newEntity
{
    /// <summary>
    /// 历史数据表实体类
    /// </summary>
    [SugarTable(TableConstant.historyData)]
    public class NHistoryData
    {
        #region 字段属性

        /// <summary>
        /// 槽号
        /// </summary>
        public string Slot_id { get; set; }

        /// <summary>
        /// 记录时间
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnDataType = "datetime2(0)")]
        public DateTime Record_time { get; set; }

        /// <summary>
        /// 槽电流
        /// </summary>
        [SugarColumn(ColumnDataType = "decimal(10, 2)", IsNullable = true)]
        public decimal Electric { get; set; }

        /// <summary>
        /// 槽电压
        /// </summary>
        [SugarColumn(ColumnDataType = "decimal(10, 3)", IsNullable = true)]
        public decimal Volt { get; set; }

        /// <summary>
        /// 当前的设定电压值
        /// </summary>
        [SugarColumn(ColumnDataType = "decimal(10, 3)", IsNullable = true)]
        public decimal Volt_set { get; set; }

        /// <summary>
        /// 电压上限 //控制电压上限
        /// </summary>
        [SugarColumn(ColumnDataType = "decimal(10, 3)", IsNullable = true)]
        public decimal Max_control_volt { get; set; }

        /// <summary>
        /// 电压下限 //控制电压下限
        /// </summary>
        [SugarColumn(ColumnDataType = "decimal(10, 3)", IsNullable = true)]
        public decimal Min_control_volt { get; set; }

        /// <summary>
        /// 槽电阻
        /// </summary>
        [SugarColumn(ColumnDataType = "decimal(10, 3)", IsNullable = true)]
        public decimal Resistance { get; set; }

        /// <summary>
        /// 滤波电阻
        /// </summary>
        [SugarColumn(ColumnDataType = "decimal(10, 3)", IsNullable = true)]
        public decimal Filter_res { get; set; }

        /// <summary>
        /// 平滑电阻
        /// </summary>
        [SugarColumn(ColumnDataType = "decimal(10, 3)", IsNullable = true)]
        public decimal Smooth_res { get; set; }

        /// <summary>
        /// 电阻针振值
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int Vibration { get; set; }

        /// <summary>
        /// 电阻摆动值
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int Swing { get; set; }

        /// <summary>
        /// 电阻斜率mv
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int Slope { get; set; }

        /// <summary>
        /// 电阻累斜
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int Acc_slope { get; set; }

        /// <summary>
        /// 实际下料间隔时间
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int Nb_interval_real { get; set; }

        /// <summary>
        /// 设定下料间隔
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int Nb_interval_set { get; set; }

        /// <summary>
        /// 下料模式  0 停料 1 正常下料 2 基本欠量周期 3长欠周期 4 基本过量周期 5 长过周期 6 效应处理下料 7 效应等待 10 定时下料
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int Nb_mode { get; set; }

        /// <summary>
        /// 下料状态 0 無 1自動小下料 2自動大下料 3 手動小下料  4手動大下料 面板狀態2+開關狀態1 下料
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public short Nb_status { get; set; }

        /// <summary>
        /// 氟盐状态 0无 1手动氟盐 2自动氟盐
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public short Fluoride_salt_nb_status { get; set; }

        /// <summary>
        /// 效应状态: 1有0 无 参照 面板状态1 并且电压>8V
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public short Effect_status { get; set; }

        /// <summary>
        /// 效应距今
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int Effect_ago { get; set; }

        /// <summary>
        /// 控制状态：0：空，1：焙烧，2：自控，4：人工定时，8：人工停料，16：取消阳移
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public short Control_status { get; set; }

        /// <summary>
        /// 阳移状态：1阳升2阳降3手动阳升4手动阳降 参照运行状态1
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public short Anode_move_status { get; set; }

        /// <summary>
        /// 出铝状态: 1有 0 无 面板状态2 出铝
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public short Out_al_status { get; set; }

        /// <summary>
        /// 换极状态: 1有 0无 面板状态4 换极
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public short Change_anode_status { get; set; }

        /// <summary>
        /// 状态: 1有 0无 面板状态4 边加工
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public short Edge_process_status { get; set; }

        /// <summary>
        /// 母线位移状态 0无 1有
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public short Raise_bus_status { get; set; }

        /// <summary>
        /// 纯手动操作状态: 1有0无 故障状态1 纯手动
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public short Purely_manual_status { get; set; }

        #endregion 字段属性
    }
}